package com.wjh.mirna.controller;

import com.wjh.mirna.dao.CircrnaDao;
import com.wjh.mirna.http.Response;
import com.wjh.mirna.model.Circrna;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/api/circrna")
public class CircrnaController {
    @Autowired
    CircrnaDao circrnaDao;
    @GetMapping("/queryCname")
    public Response queryCname(Circrna circrna){
        List<Circrna> circrnas = circrnaDao.selectCname(circrna);
        return Response.ok(circrnas);
    }
}
